<?php

switch ($this->entity->showlang) {

    case 0:
    print "<div class=\"sitemap\">\n";
    
    ent_sitemap::displayBranch($this->app->getLangid(), 0);
    
    // $this->entity->displayBranch($langid, 0);
    print "</div>\n";
    break;
    
    case 1:
    
    die('doooh!');
        
    $this->entity->languages = LED_CallFunction (LED_ENTITY_LANGUAGE, "Get", 0, 1);
    
    foreach($this->entity->languages->entities as $value) {
    print "<div class=\"sitemap\">\n";
    print "<div class=\"title\">" . $value->name . "</div>\n";
    
        
    $this->entity->displayLevel($value->id, 0);
    print "</div>\n";
    }
    break;
    
}


?>